package cn.edu.jmu.oelp.pojo;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author Wen
 */
public class Paragraphs {
    private int paragraphsId;
    private int articleId;
    private String content;
    private List<String> entityList = new ArrayList<>();
    private List<String> typeList = new ArrayList<>();
    private List<Entity> entities = new ArrayList<>();

    public List<String> getTypeList() {
        return typeList;
    }

    public void setTypeList(List<String> typeList) {
        this.typeList = typeList;
    }

    public List<String> getEntityList() {
        return entityList;
    }

    public void setEntityList(List<String> entityList) {
        this.entityList = entityList;
    }

    public List<Entity> getEntities() {
        return entities;
    }

    public void setEntities(List<Entity> entities) {
        this.entities = entities;
    }

    @Override
    public String toString() {
        return "Paragraphs{" +
                "paragraphsId=" + paragraphsId +
                ", articleId=" + articleId +
                ", content='" + content + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Paragraphs that = (Paragraphs) o;
        return paragraphsId == that.paragraphsId &&
                articleId == that.articleId &&
                Objects.equals(content, that.content);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paragraphsId, articleId, content);
    }

    public int getParagraphsId() {
        return paragraphsId;
    }

    public void setParagraphsId(int paragraphsId) {
        this.paragraphsId = paragraphsId;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
